import Vue from "vue"
import "default-passive-events"
import "babel-polyfill"
import ForwardDialog from "@/plugin/forwardDialog"
// import VideoPlayer from "vue-video-player"
// Vue.use(VideoPlayer)
import {
  Button,
  Select,
  Dialog,
  Input,
  Tooltip,
  Table,
  TableColumn,
  Col,
  Form,
  FormItem,
  DatePicker,
  Loading,
  Pagination,
  Message,
  Option,
  Upload,
  Carousel,
  CarouselItem,
  Image,
  MessageBox,
  ButtonGroup,
  Collapse,
  CollapseItem,
  Progress,
  RadioGroup,
  RadioButton,
  Menu,
  MenuItem,
  MenuItemGroup,
  Submenu,
  Row,
  Tabs,
  TabPane,
  Card,
  InfiniteScroll,
  Cascader,
  Tree,
  Descriptions,
  DescriptionsItem,
  Tag,
  Popover,
  CheckboxGroup,
  Checkbox,
  Badge,
  Radio,
  Empty,
  Alert,
  ColorPicker,
  InputNumber,
  Switch,
  Drawer,
  Divider,
  Autocomplete,
  OptionGroup,
  Transfer,
  Link
} from "element-ui"
Vue.use(Button)
Vue.use(Select)
Vue.use(Dialog)
Vue.use(Input)
Vue.use(Tooltip)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Col)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(DatePicker)
Vue.use(Loading)
Vue.use(Pagination)
Vue.use(Select)
Vue.use(Option)
Vue.use(Upload)
Vue.use(Carousel)
Vue.use(CarouselItem)
Vue.use(Image)
Vue.use(ButtonGroup)
Vue.use(Collapse)
Vue.use(CollapseItem)
Vue.use(Progress)
Vue.use(RadioGroup)
Vue.use(RadioButton)
Vue.use(Menu)
Vue.use(MenuItem)
Vue.use(MenuItemGroup)
Vue.use(Submenu)
Vue.use(Row)
Vue.use(Tabs)
Vue.use(TabPane)
Vue.use(Card)
Vue.use(InfiniteScroll)
Vue.use(Cascader)
Vue.use(Tree)
Vue.use(Descriptions)
Vue.use(DescriptionsItem)
Vue.use(Tag)
Vue.use(Popover)
Vue.use(CheckboxGroup)
Vue.use(Checkbox)
Vue.use(Badge)
Vue.use(Radio)
Vue.use(Empty)
Vue.use(Alert)
Vue.use(ColorPicker)
Vue.use(InputNumber)
Vue.use(Switch)
Vue.use(Drawer)
Vue.use(Divider)
Vue.use(Autocomplete)
Vue.use(OptionGroup)
Vue.use(Transfer)
Vue.use(ForwardDialog)
Vue.use(Link)
Vue.prototype.$message = Message
Vue.prototype.$alert = MessageBox.alert
Vue.prototype.$confirm = MessageBox.confirm
import * as tools from "./utils/tools"
import "./assets"
import JatIcon from "@/assets/JatIcon.vue"
Vue.prototype.tools = tools
import App from "./App.vue"
import router from "./router"
import "./permission"
import store from "./store"
import "@/styles/index.less"
import "@/styles/index"
import contextmenu from "./directives/contextmenu"
import "@/utils/directive"
Vue.component("jat-icon", JatIcon)
Vue.config.productionTip = false
Vue.directive("contextmenu", contextmenu)
new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount("#app")
